import { createRouter, createWebHistory } from 'vue-router'
import CourseView from '../views/CourseView.vue'
import ExtendView from "../views/ExtendView";
import PersonView from "../views/PersonView";
import MyView from "../views/MyView";

const routes = [
  {
    path: '/extend',
    name: 'extend',
    component: ExtendView,
    meta:{
      TabBarShow: true,
    }
  },
  {
    path: '/my',
    name: 'my',
    component: MyView,
    meta:{
      TabBarShow: true,
    }
  },
  {
    path: '/person',
    name: 'person',
    component: PersonView,
    meta:{
      TabBarShow: true,
    }
  },
  {
    path: '/',
    name: 'course',
    component: CourseView,
    meta:{
      TabBarShow: true,
    }
  },
  {
    path: '/about',
    name: 'about',
    component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue')
  }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
